<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="list-group">
    <a id="activeEx" href="#" class="list-group-item ">Menu</a>

    <c:forEach items="${categoryList}" var="category">
        <a href="list.htm?idf=1&page=1&category=${category.name}&manufacturer=none" class="list-group-item"><c:out value="${category.name}"/></a>   
    </c:forEach>
</div>


<div class="list-group">
    <form:form method="POST" commandName="commandBean" action="list.htm?idf=0&page=1">

        <form:select class="selectpicker" title="Kategoria" data-style="btn-success" data-width="254px" path="category">
            <form:option  value="none" label="" />
            <form:options  items="${categoryList}"  itemValue="name" itemLabel="name" />
        </form:select>

        <form:select class="selectpicker" title="Producent" data-style="btn-success" data-width="254px" path="manufacturer">
            <form:option  value="none" label="" />
            <form:options  items="${manufacturerList}"  itemValue="name" itemLabel="name" />
        </form:select>

        <form:select class="selectpicker" title="Cena" data-style="btn-success" data-width="254px" path="cost">
            <form:option  value="none" label="" />
            <form:options  items="${costList}"  />
        </form:select>

        <button type="submit" class="btn btn-primary pull-right">Szukaj</button>
        <a href="list.htm?idf=0&page=1" class="btn btn-warning  ">Wyczyść</a>
    </form:form>
        
</div>
<br>
        